import Mock from 'mockjs'

Mock.setup({
    timeout: '300-600'
})

Mock.mock(`/ad/cats/list`, /.*/, (request) => {
    /* 返回值 */
    return {
        "code": 1,
        "errMsg": "查询成功！",
        "data": {
            "total": 15,
            "per_page": 30,
            "last_page": 1,
            "data": [
                {
                    "id": 1,
                    "name": "卫衣",
                    "visible": 1,
                    "text": "选择颜色",
                    "sku": 1,
                    "kind": 83,
                    "sort": 10,
                    "mode": 0,
                    "staff": 1,
                    "a_time": "2025-01-22 12:30:09",
                    "u_time": "2025-01-28 23:00:33",
                    "uname": "爱心发电丶",
                    "kname": "衣服",
                    "goods": 2
                },
                {
                    "id": 2,
                    "name": "短袖",
                    "visible": 1,
                    "text": "选择颜色",
                    "sku": 1,
                    "kind": 83,
                    "sort": 10,
                    "mode": 0,
                    "staff": 1,
                    "a_time": "2025-01-22 13:24:12",
                    "u_time": "2025-01-24 19:28:11",
                    "uname": "爱心发电丶",
                    "kname": "衣服",
                    "goods": 1
                },
                {
                    "id": 8,
                    "name": "苹果",
                    "visible": 1,
                    "text": "选择材质",
                    "sku": 1,
                    "kind": 84,
                    "sort": 10,
                    "mode": 1,
                    "staff": 1,
                    "a_time": "2025-02-08 17:51:55",
                    "u_time": "2025-02-14 14:26:26",
                    "uname": "爱心发电丶",
                    "kname": "手机壳",
                    "goods": 37
                },
                {
                    "id": 3,
                    "name": "小米",
                    "visible": 1,
                    "text": "选择材质",
                    "sku": 1,
                    "kind": 84,
                    "sort": 9,
                    "mode": 1,
                    "staff": 1,
                    "a_time": "2025-01-28 23:07:53",
                    "u_time": "2025-02-14 14:26:34",
                    "uname": "爱心发电丶",
                    "kname": "手机壳",
                    "goods": 40
                },
                {
                    "id": 13,
                    "name": "红米",
                    "visible": 1,
                    "text": "选择材质",
                    "sku": 1,
                    "kind": 84,
                    "sort": 8,
                    "mode": 1,
                    "staff": 1,
                    "a_time": "2025-02-14 10:56:15",
                    "u_time": "2025-02-14 14:26:40",
                    "uname": "爱心发电丶",
                    "kname": "手机壳",
                    "goods": 57
                },
                {
                    "id": 6,
                    "name": "手提包",
                    "visible": 1,
                    "text": null,
                    "sku": 0,
                    "kind": 87,
                    "sort": 3,
                    "mode": 0,
                    "staff": 1,
                    "a_time": "2025-02-05 17:47:18",
                    "u_time": "2025-02-13 12:56:51",
                    "uname": "爱心发电丶",
                    "kname": "包包",
                    "goods": 2
                },
                {
                    "id": 12,
                    "name": "双肩包",
                    "visible": 1,
                    "text": null,
                    "sku": 0,
                    "kind": 87,
                    "sort": 2,
                    "mode": 0,
                    "staff": 1,
                    "a_time": "2025-02-12 11:07:34",
                    "u_time": "2025-02-13 11:42:50",
                    "uname": "爱心发电丶",
                    "kname": "包包",
                    "goods": 0
                },
                {
                    "id": 4,
                    "name": "方形",
                    "visible": 1,
                    "text": null,
                    "sku": 0,
                    "kind": 85,
                    "sort": 1,
                    "mode": 0,
                    "staff": 1,
                    "a_time": "2025-01-29 12:38:04",
                    "u_time": null,
                    "uname": "爱心发电丶",
                    "kname": "抱枕",
                    "goods": 1
                },
                {
                    "id": 5,
                    "name": "相框",
                    "visible": 1,
                    "text": null,
                    "sku": 0,
                    "kind": 86,
                    "sort": 1,
                    "mode": 0,
                    "staff": 1,
                    "a_time": "2025-01-29 12:41:41",
                    "u_time": "2025-02-01 22:31:58",
                    "uname": "爱心发电丶",
                    "kname": "相册",
                    "goods": 1
                },
                {
                    "id": 7,
                    "name": "华为",
                    "visible": 1,
                    "text": "选择材质",
                    "sku": 1,
                    "kind": 84,
                    "sort": 1,
                    "mode": 1,
                    "staff": 1,
                    "a_time": "2025-02-08 17:51:45",
                    "u_time": null,
                    "uname": "爱心发电丶",
                    "kname": "手机壳",
                    "goods": 85
                },
                {
                    "id": 9,
                    "name": "VIVO",
                    "visible": 1,
                    "text": "选择材质",
                    "sku": 1,
                    "kind": 84,
                    "sort": 1,
                    "mode": 1,
                    "staff": 1,
                    "a_time": "2025-02-08 17:52:08",
                    "u_time": null,
                    "uname": "爱心发电丶",
                    "kname": "手机壳",
                    "goods": 155
                },
                {
                    "id": 10,
                    "name": "OPPO",
                    "visible": 1,
                    "text": "选择材质",
                    "sku": 1,
                    "kind": 84,
                    "sort": 1,
                    "mode": 1,
                    "staff": 1,
                    "a_time": "2025-02-08 17:52:15",
                    "u_time": null,
                    "uname": "爱心发电丶",
                    "kname": "手机壳",
                    "goods": 127
                },
                {
                    "id": 11,
                    "name": "荣耀",
                    "visible": 1,
                    "text": "选择材质",
                    "sku": 1,
                    "kind": 84,
                    "sort": 1,
                    "mode": 1,
                    "staff": 1,
                    "a_time": "2025-02-08 17:52:23",
                    "u_time": null,
                    "uname": "爱心发电丶",
                    "kname": "手机壳",
                    "goods": 80
                },
                {
                    "id": 14,
                    "name": "一加",
                    "visible": 1,
                    "text": "选择材质",
                    "sku": 1,
                    "kind": 84,
                    "sort": 1,
                    "mode": 1,
                    "staff": 1,
                    "a_time": "2025-02-14 10:56:41",
                    "u_time": null,
                    "uname": "爱心发电丶",
                    "kname": "手机壳",
                    "goods": 27
                },
                {
                    "id": 15,
                    "name": "三星",
                    "visible": 1,
                    "text": "选择材质",
                    "sku": 1,
                    "kind": 84,
                    "sort": 1,
                    "mode": 1,
                    "staff": 1,
                    "a_time": "2025-02-14 10:56:47",
                    "u_time": null,
                    "uname": "爱心发电丶",
                    "kname": "手机壳",
                    "goods": 52
                }
            ],
            "current_page": 1
        }
    };
});
